package com.woniu.common.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class JpHospitalinfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public JpHospitalinfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andProvinceIsNull() {
            addCriterion("province is null");
            return (Criteria) this;
        }

        public Criteria andProvinceIsNotNull() {
            addCriterion("province is not null");
            return (Criteria) this;
        }

        public Criteria andProvinceEqualTo(String value) {
            addCriterion("province =", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotEqualTo(String value) {
            addCriterion("province <>", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceGreaterThan(String value) {
            addCriterion("province >", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceGreaterThanOrEqualTo(String value) {
            addCriterion("province >=", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceLessThan(String value) {
            addCriterion("province <", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceLessThanOrEqualTo(String value) {
            addCriterion("province <=", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceLike(String value) {
            addCriterion("province like", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotLike(String value) {
            addCriterion("province not like", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceIn(List<String> values) {
            addCriterion("province in", values, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotIn(List<String> values) {
            addCriterion("province not in", values, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceBetween(String value1, String value2) {
            addCriterion("province between", value1, value2, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotBetween(String value1, String value2) {
            addCriterion("province not between", value1, value2, "province");
            return (Criteria) this;
        }

        public Criteria andCityIsNull() {
            addCriterion("city is null");
            return (Criteria) this;
        }

        public Criteria andCityIsNotNull() {
            addCriterion("city is not null");
            return (Criteria) this;
        }

        public Criteria andCityEqualTo(String value) {
            addCriterion("city =", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityNotEqualTo(String value) {
            addCriterion("city <>", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityGreaterThan(String value) {
            addCriterion("city >", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityGreaterThanOrEqualTo(String value) {
            addCriterion("city >=", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityLessThan(String value) {
            addCriterion("city <", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityLessThanOrEqualTo(String value) {
            addCriterion("city <=", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityLike(String value) {
            addCriterion("city like", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityNotLike(String value) {
            addCriterion("city not like", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityIn(List<String> values) {
            addCriterion("city in", values, "city");
            return (Criteria) this;
        }

        public Criteria andCityNotIn(List<String> values) {
            addCriterion("city not in", values, "city");
            return (Criteria) this;
        }

        public Criteria andCityBetween(String value1, String value2) {
            addCriterion("city between", value1, value2, "city");
            return (Criteria) this;
        }

        public Criteria andCityNotBetween(String value1, String value2) {
            addCriterion("city not between", value1, value2, "city");
            return (Criteria) this;
        }

        public Criteria andCountyIsNull() {
            addCriterion("county is null");
            return (Criteria) this;
        }

        public Criteria andCountyIsNotNull() {
            addCriterion("county is not null");
            return (Criteria) this;
        }

        public Criteria andCountyEqualTo(String value) {
            addCriterion("county =", value, "county");
            return (Criteria) this;
        }

        public Criteria andCountyNotEqualTo(String value) {
            addCriterion("county <>", value, "county");
            return (Criteria) this;
        }

        public Criteria andCountyGreaterThan(String value) {
            addCriterion("county >", value, "county");
            return (Criteria) this;
        }

        public Criteria andCountyGreaterThanOrEqualTo(String value) {
            addCriterion("county >=", value, "county");
            return (Criteria) this;
        }

        public Criteria andCountyLessThan(String value) {
            addCriterion("county <", value, "county");
            return (Criteria) this;
        }

        public Criteria andCountyLessThanOrEqualTo(String value) {
            addCriterion("county <=", value, "county");
            return (Criteria) this;
        }

        public Criteria andCountyLike(String value) {
            addCriterion("county like", value, "county");
            return (Criteria) this;
        }

        public Criteria andCountyNotLike(String value) {
            addCriterion("county not like", value, "county");
            return (Criteria) this;
        }

        public Criteria andCountyIn(List<String> values) {
            addCriterion("county in", values, "county");
            return (Criteria) this;
        }

        public Criteria andCountyNotIn(List<String> values) {
            addCriterion("county not in", values, "county");
            return (Criteria) this;
        }

        public Criteria andCountyBetween(String value1, String value2) {
            addCriterion("county between", value1, value2, "county");
            return (Criteria) this;
        }

        public Criteria andCountyNotBetween(String value1, String value2) {
            addCriterion("county not between", value1, value2, "county");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIsNull() {
            addCriterion("hospital_name is null");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIsNotNull() {
            addCriterion("hospital_name is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalNameEqualTo(String value) {
            addCriterion("hospital_name =", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotEqualTo(String value) {
            addCriterion("hospital_name <>", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameGreaterThan(String value) {
            addCriterion("hospital_name >", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_name >=", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLessThan(String value) {
            addCriterion("hospital_name <", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLessThanOrEqualTo(String value) {
            addCriterion("hospital_name <=", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLike(String value) {
            addCriterion("hospital_name like", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotLike(String value) {
            addCriterion("hospital_name not like", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIn(List<String> values) {
            addCriterion("hospital_name in", values, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotIn(List<String> values) {
            addCriterion("hospital_name not in", values, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameBetween(String value1, String value2) {
            addCriterion("hospital_name between", value1, value2, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotBetween(String value1, String value2) {
            addCriterion("hospital_name not between", value1, value2, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameIsNull() {
            addCriterion("docking_peoplename is null");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameIsNotNull() {
            addCriterion("docking_peoplename is not null");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameEqualTo(String value) {
            addCriterion("docking_peoplename =", value, "dockingPeoplename");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameNotEqualTo(String value) {
            addCriterion("docking_peoplename <>", value, "dockingPeoplename");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameGreaterThan(String value) {
            addCriterion("docking_peoplename >", value, "dockingPeoplename");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameGreaterThanOrEqualTo(String value) {
            addCriterion("docking_peoplename >=", value, "dockingPeoplename");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameLessThan(String value) {
            addCriterion("docking_peoplename <", value, "dockingPeoplename");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameLessThanOrEqualTo(String value) {
            addCriterion("docking_peoplename <=", value, "dockingPeoplename");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameLike(String value) {
            addCriterion("docking_peoplename like", value, "dockingPeoplename");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameNotLike(String value) {
            addCriterion("docking_peoplename not like", value, "dockingPeoplename");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameIn(List<String> values) {
            addCriterion("docking_peoplename in", values, "dockingPeoplename");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameNotIn(List<String> values) {
            addCriterion("docking_peoplename not in", values, "dockingPeoplename");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameBetween(String value1, String value2) {
            addCriterion("docking_peoplename between", value1, value2, "dockingPeoplename");
            return (Criteria) this;
        }

        public Criteria andDockingPeoplenameNotBetween(String value1, String value2) {
            addCriterion("docking_peoplename not between", value1, value2, "dockingPeoplename");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneIsNull() {
            addCriterion("docking_phone is null");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneIsNotNull() {
            addCriterion("docking_phone is not null");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneEqualTo(String value) {
            addCriterion("docking_phone =", value, "dockingPhone");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneNotEqualTo(String value) {
            addCriterion("docking_phone <>", value, "dockingPhone");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneGreaterThan(String value) {
            addCriterion("docking_phone >", value, "dockingPhone");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("docking_phone >=", value, "dockingPhone");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneLessThan(String value) {
            addCriterion("docking_phone <", value, "dockingPhone");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneLessThanOrEqualTo(String value) {
            addCriterion("docking_phone <=", value, "dockingPhone");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneLike(String value) {
            addCriterion("docking_phone like", value, "dockingPhone");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneNotLike(String value) {
            addCriterion("docking_phone not like", value, "dockingPhone");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneIn(List<String> values) {
            addCriterion("docking_phone in", values, "dockingPhone");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneNotIn(List<String> values) {
            addCriterion("docking_phone not in", values, "dockingPhone");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneBetween(String value1, String value2) {
            addCriterion("docking_phone between", value1, value2, "dockingPhone");
            return (Criteria) this;
        }

        public Criteria andDockingPhoneNotBetween(String value1, String value2) {
            addCriterion("docking_phone not between", value1, value2, "dockingPhone");
            return (Criteria) this;
        }

        public Criteria andHospitalCardIsNull() {
            addCriterion("hospital_card is null");
            return (Criteria) this;
        }

        public Criteria andHospitalCardIsNotNull() {
            addCriterion("hospital_card is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalCardEqualTo(String value) {
            addCriterion("hospital_card =", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNotEqualTo(String value) {
            addCriterion("hospital_card <>", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardGreaterThan(String value) {
            addCriterion("hospital_card >", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_card >=", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardLessThan(String value) {
            addCriterion("hospital_card <", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardLessThanOrEqualTo(String value) {
            addCriterion("hospital_card <=", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardLike(String value) {
            addCriterion("hospital_card like", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNotLike(String value) {
            addCriterion("hospital_card not like", value, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardIn(List<String> values) {
            addCriterion("hospital_card in", values, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNotIn(List<String> values) {
            addCriterion("hospital_card not in", values, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardBetween(String value1, String value2) {
            addCriterion("hospital_card between", value1, value2, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalCardNotBetween(String value1, String value2) {
            addCriterion("hospital_card not between", value1, value2, "hospitalCard");
            return (Criteria) this;
        }

        public Criteria andHospitalRentIsNull() {
            addCriterion("hospital_rent is null");
            return (Criteria) this;
        }

        public Criteria andHospitalRentIsNotNull() {
            addCriterion("hospital_rent is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalRentEqualTo(Float value) {
            addCriterion("hospital_rent =", value, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentNotEqualTo(Float value) {
            addCriterion("hospital_rent <>", value, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentGreaterThan(Float value) {
            addCriterion("hospital_rent >", value, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentGreaterThanOrEqualTo(Float value) {
            addCriterion("hospital_rent >=", value, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentLessThan(Float value) {
            addCriterion("hospital_rent <", value, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentLessThanOrEqualTo(Float value) {
            addCriterion("hospital_rent <=", value, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentIn(List<Float> values) {
            addCriterion("hospital_rent in", values, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentNotIn(List<Float> values) {
            addCriterion("hospital_rent not in", values, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentBetween(Float value1, Float value2) {
            addCriterion("hospital_rent between", value1, value2, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalRentNotBetween(Float value1, Float value2) {
            addCriterion("hospital_rent not between", value1, value2, "hospitalRent");
            return (Criteria) this;
        }

        public Criteria andHospitalSharingIsNull() {
            addCriterion("hospital_sharing is null");
            return (Criteria) this;
        }

        public Criteria andHospitalSharingIsNotNull() {
            addCriterion("hospital_sharing is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalSharingEqualTo(BigDecimal value) {
            addCriterion("hospital_sharing =", value, "hospitalSharing");
            return (Criteria) this;
        }

        public Criteria andHospitalSharingNotEqualTo(BigDecimal value) {
            addCriterion("hospital_sharing <>", value, "hospitalSharing");
            return (Criteria) this;
        }

        public Criteria andHospitalSharingGreaterThan(BigDecimal value) {
            addCriterion("hospital_sharing >", value, "hospitalSharing");
            return (Criteria) this;
        }

        public Criteria andHospitalSharingGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("hospital_sharing >=", value, "hospitalSharing");
            return (Criteria) this;
        }

        public Criteria andHospitalSharingLessThan(BigDecimal value) {
            addCriterion("hospital_sharing <", value, "hospitalSharing");
            return (Criteria) this;
        }

        public Criteria andHospitalSharingLessThanOrEqualTo(BigDecimal value) {
            addCriterion("hospital_sharing <=", value, "hospitalSharing");
            return (Criteria) this;
        }

        public Criteria andHospitalSharingIn(List<BigDecimal> values) {
            addCriterion("hospital_sharing in", values, "hospitalSharing");
            return (Criteria) this;
        }

        public Criteria andHospitalSharingNotIn(List<BigDecimal> values) {
            addCriterion("hospital_sharing not in", values, "hospitalSharing");
            return (Criteria) this;
        }

        public Criteria andHospitalSharingBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("hospital_sharing between", value1, value2, "hospitalSharing");
            return (Criteria) this;
        }

        public Criteria andHospitalSharingNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("hospital_sharing not between", value1, value2, "hospitalSharing");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterionForJDBCDate("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterionForJDBCDate("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterionForJDBCDate("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andShareholderNameIsNull() {
            addCriterion("shareholder_name is null");
            return (Criteria) this;
        }

        public Criteria andShareholderNameIsNotNull() {
            addCriterion("shareholder_name is not null");
            return (Criteria) this;
        }

        public Criteria andShareholderNameEqualTo(String value) {
            addCriterion("shareholder_name =", value, "shareholderName");
            return (Criteria) this;
        }

        public Criteria andShareholderNameNotEqualTo(String value) {
            addCriterion("shareholder_name <>", value, "shareholderName");
            return (Criteria) this;
        }

        public Criteria andShareholderNameGreaterThan(String value) {
            addCriterion("shareholder_name >", value, "shareholderName");
            return (Criteria) this;
        }

        public Criteria andShareholderNameGreaterThanOrEqualTo(String value) {
            addCriterion("shareholder_name >=", value, "shareholderName");
            return (Criteria) this;
        }

        public Criteria andShareholderNameLessThan(String value) {
            addCriterion("shareholder_name <", value, "shareholderName");
            return (Criteria) this;
        }

        public Criteria andShareholderNameLessThanOrEqualTo(String value) {
            addCriterion("shareholder_name <=", value, "shareholderName");
            return (Criteria) this;
        }

        public Criteria andShareholderNameLike(String value) {
            addCriterion("shareholder_name like", value, "shareholderName");
            return (Criteria) this;
        }

        public Criteria andShareholderNameNotLike(String value) {
            addCriterion("shareholder_name not like", value, "shareholderName");
            return (Criteria) this;
        }

        public Criteria andShareholderNameIn(List<String> values) {
            addCriterion("shareholder_name in", values, "shareholderName");
            return (Criteria) this;
        }

        public Criteria andShareholderNameNotIn(List<String> values) {
            addCriterion("shareholder_name not in", values, "shareholderName");
            return (Criteria) this;
        }

        public Criteria andShareholderNameBetween(String value1, String value2) {
            addCriterion("shareholder_name between", value1, value2, "shareholderName");
            return (Criteria) this;
        }

        public Criteria andShareholderNameNotBetween(String value1, String value2) {
            addCriterion("shareholder_name not between", value1, value2, "shareholderName");
            return (Criteria) this;
        }

        public Criteria andDistributorOneIsNull() {
            addCriterion("distributor_one is null");
            return (Criteria) this;
        }

        public Criteria andDistributorOneIsNotNull() {
            addCriterion("distributor_one is not null");
            return (Criteria) this;
        }

        public Criteria andDistributorOneEqualTo(String value) {
            addCriterion("distributor_one =", value, "distributorOne");
            return (Criteria) this;
        }

        public Criteria andDistributorOneNotEqualTo(String value) {
            addCriterion("distributor_one <>", value, "distributorOne");
            return (Criteria) this;
        }

        public Criteria andDistributorOneGreaterThan(String value) {
            addCriterion("distributor_one >", value, "distributorOne");
            return (Criteria) this;
        }

        public Criteria andDistributorOneGreaterThanOrEqualTo(String value) {
            addCriterion("distributor_one >=", value, "distributorOne");
            return (Criteria) this;
        }

        public Criteria andDistributorOneLessThan(String value) {
            addCriterion("distributor_one <", value, "distributorOne");
            return (Criteria) this;
        }

        public Criteria andDistributorOneLessThanOrEqualTo(String value) {
            addCriterion("distributor_one <=", value, "distributorOne");
            return (Criteria) this;
        }

        public Criteria andDistributorOneLike(String value) {
            addCriterion("distributor_one like", value, "distributorOne");
            return (Criteria) this;
        }

        public Criteria andDistributorOneNotLike(String value) {
            addCriterion("distributor_one not like", value, "distributorOne");
            return (Criteria) this;
        }

        public Criteria andDistributorOneIn(List<String> values) {
            addCriterion("distributor_one in", values, "distributorOne");
            return (Criteria) this;
        }

        public Criteria andDistributorOneNotIn(List<String> values) {
            addCriterion("distributor_one not in", values, "distributorOne");
            return (Criteria) this;
        }

        public Criteria andDistributorOneBetween(String value1, String value2) {
            addCriterion("distributor_one between", value1, value2, "distributorOne");
            return (Criteria) this;
        }

        public Criteria andDistributorOneNotBetween(String value1, String value2) {
            addCriterion("distributor_one not between", value1, value2, "distributorOne");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoIsNull() {
            addCriterion("distributor_two is null");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoIsNotNull() {
            addCriterion("distributor_two is not null");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoEqualTo(String value) {
            addCriterion("distributor_two =", value, "distributorTwo");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoNotEqualTo(String value) {
            addCriterion("distributor_two <>", value, "distributorTwo");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoGreaterThan(String value) {
            addCriterion("distributor_two >", value, "distributorTwo");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoGreaterThanOrEqualTo(String value) {
            addCriterion("distributor_two >=", value, "distributorTwo");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoLessThan(String value) {
            addCriterion("distributor_two <", value, "distributorTwo");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoLessThanOrEqualTo(String value) {
            addCriterion("distributor_two <=", value, "distributorTwo");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoLike(String value) {
            addCriterion("distributor_two like", value, "distributorTwo");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoNotLike(String value) {
            addCriterion("distributor_two not like", value, "distributorTwo");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoIn(List<String> values) {
            addCriterion("distributor_two in", values, "distributorTwo");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoNotIn(List<String> values) {
            addCriterion("distributor_two not in", values, "distributorTwo");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoBetween(String value1, String value2) {
            addCriterion("distributor_two between", value1, value2, "distributorTwo");
            return (Criteria) this;
        }

        public Criteria andDistributorTwoNotBetween(String value1, String value2) {
            addCriterion("distributor_two not between", value1, value2, "distributorTwo");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}